home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Focus Sets < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB  |  [TEXT/ttxt]

  1. Subject:     Focus Sets
  2. Sent:        8/2/96 6:35 PM
  3. Received:    8/5/96 8:42 AM
  4. From:        Hutchings, Richard B. "Brad", brad@hutchings-software.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. I hate to ask these "how do I" questions, but I have been battling this one
  9. for two days and am totally confused at this point.
  10.  
  11. This is for Rapid-I Button. Here's what its focus behavior needs to be.
  12. Like ODF Embed, the button can have (but doesn't always have) 1 embedded
  13. part (which is a label). Like ODF Button, when the user clicks on the
  14. Rapid-I Button or its embedded part, the button should track - neither the
  15. Rapid-I Button nor the embedded part should grab focii. If the user
  16. option-clicks on the embedded part, it should grab its desired focii. If
  17. the user option-clicks on the portion of the Rapid-I Button which is not
  18. the used shape of the embedded part, Rapid-I Button should grab its focii.
  19.  
  20. The "RIButtonFrame" class is the only view class that Rapid-I Button uses.
  21. I don't actually use control views or the Mac's Control Manager.
  22.  
  23. I tried using the "COptionBehavior" and "CButtonFrame" ways of dealing with
  24. focii from ODF Button. I also tried adding a "DoMouseDownInEmbeddedFrame"
  25. method to both the COptionBehavior and RIButtonFrame classes.Walking
  26. through the debugger, I can't find a consistent ordering to the execution
  27. path going through COptionBehavior::DoMouseDown,
  28. RIButtonFrame::GetFocusSet, and RIButtonFrame::DoMouseDown.
  29. RIButtonFrame::GetFocusSet can be called before or after
  30. COptionBehavior::DoMouseDown. I can't make any sense of it.
  31.  
  32. So, how _should_ I go about getting this focus set stuff to work right?
  33.  
  34. Brad
  35.  
  36. <mailto: "Brad Hutchings" brad@hutchings-software.com>
  37. <http://www.hutchings-software.com>
  38.  
  39. Got OpenDoc? Got Cyberdog? Then beta-test Rapid-I Button! Email me for more
  40. information...
  41.  
  42.  
  43.